{template header}
<div class="container">



    <div class="row">


        <div class="col-md-2">

            <div class="my_left">

                {php include pubTemplate("my")}

            </div>

        </div>
        <div class="col-md-10">



            <div class="panel panel-default">
            <div class="panel-heading">创建的小组</div>
            <div class="panel-body">




                <div class="row">

                    {loop $arrCreateGroup $key $item}
                    <div class="col-sm-6 col-md-2">
                        <div class="thumbnail">
                            <a href="{tsUrl('group','show',array('id'=>$item['groupid']))}"><img src="{$item['photo']}" alt="{$item['groupname']}" width="120" height="120"></a>
                            <div class="caption">
                                <h3>{php echo cututf8($item['groupname'],0,8,false)}</h3>

                                <p><a href="{tsUrl('group','edit',array('ts'=>'base','groupid'=>$item['groupid']))}" class="btn btn-default btn-block" role="button">管理</a> </p>
                            </div>
                        </div>
                    </div>
                    {/loop}


                </div>





            </div>
        </div>



            <div class="panel panel-default">
                <div class="panel-heading">加入的小组</div>
                <div class="panel-body">




                    {loop $arrGroup $key $item}
                    <div class="col-sm-6 col-md-2">
                        <div class="thumbnail">
                            <a href="{tsUrl('group','show',array('id'=>$item['groupid']))}"><img src="{$item['photo']}" alt="{$item['groupname']}" width="120" height="120"></a>
                            <div class="caption">
                                <h3>{php echo cututf8($item['groupname'],0,6,false)}</h3>

                                {if $strUser['userid']!=$item['userid']}
                                <p><a class="btn btn-default btn-block" href="javascript:void('0')" onclick="exitGroup('{$item['groupid']}')">退出</a></p>
                                {else}
                                <p><a class="btn btn-default btn-block" href="{tsUrl('group','add',array('id'=>$item['groupid']))}" >发帖</a></p>
                                {/if}
                            </div>
                        </div>
                    </div>
                    {/loop}

                </div>
            </div>






        </div>
        </div>




</div>
{template footer}